/*
 * @Author: moonwater 13812995013@163.com
 * @Date: 2025-03-07 09:29:46
 * @LastEditors: moonwater 13812995013@163.com
 * @LastEditTime: 2025-03-07 09:32:06
 * @FilePath: \盐师22Git仓库\day10\AnimalTest.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day10;

public class AnimalTest {
   public static void main(String[] args) {
    Animal a = new Animal();
    a.eat();
    a.sleep();
    Cat c = new Cat();
    c.eat();
    c.sleep();
    Dog d = new Dog();
    d.eat();
    d.sleep();
    
   }
}
